package com.adnaan.backend.entity;

import com.adnaan.backend.entity.dto.DosageDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * author: adnaan
 * create: 2025-02-20 13:44
 * Description:
 */
@Data
@Tag(name = "药膳表")
@TableName("herbal_dishes")
@EqualsAndHashCode(callSuper = true)
public class Dishes extends BaseEntity {

    @Schema(description = "药膳名称")
    private String name;

    @Schema(description = "药膳图片")
    private String cover;

    @Schema(description = "药膳简介")
    private String introduction;

    @Schema(description = "药膳做法")
    @TableField(exist = false)
    private List<DosageDto> dosage;

    @Schema(description = "药膳做法步骤")
    @TableField(exist = false)
    private List<DishesSteps> steps;
}
